.TH std::promise::~promise 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::promise::~promise \- std::promise::~promise

.SH Synopsis
   ~promise();  \fI(since C++11)\fP

   Abandons the shared state:

     * if the shared state is ready, releases it.
     * if the shared state is not ready, stores an exception object of type
       std::future_error with an error condition std::future_errc::broken_promise,
       makes the shared state ready and releases it.
